<fieldset>
    <legend>PHPCrawler Response</legend>
    <?php if ($this->cate->err == 0): ?>
        <div class="alert alert-success">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            <strong>Success!</strong> Có tất cả <?php echo count($this->cate->links); ?> liên kết được tìm thấy
        </div>
        <div class="get-links-cl">
            <table class="table-striped table-bordered" id="get-links" style='width: 100%' >
                <tr>
                    <th>#</th>
                    <th>Links</th>
                </tr>
                <?php
                foreach ($this->cate->links as $key => $item) {
                    echo <<<EOT
                    <tr>
                        <th>$key</th>
                        <td>$item</td>
                    </tr>
EOT;
                }
                ?>
            </table>
        </div>
        <br/>
        <form action="<?php echo $this->url(); ?>" method="post">
            <input name='url_links' type="hidden" value='<?php echo $this->url_links; ?>'/>
            <input name='prtt' type="hidden" value='<?php echo $this->template; ?>'/>
            <input name='filter_link' type="hidden" value='<?php echo $this->filter_link; ?>'/>
            <input name='domain' type="hidden" value='<?php echo $this->domain; ?>'/>
            <input name ='hasResult' type='submit' id="" class="btn btn-success" value='Complete'/>
        </form>
    <?php else: ?>
        <div class="alert">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            <strong>Warning!</strong> <?php echo $this->cate->msg; ?>
        </div>
    <?php endif; ?>
</fieldset>
